package com.mayisoftware.mayioa.business.plan.impl.serviceImpl;

import com.mayisoftware.mayioa.business.plan.api.domain.PlanFlowInfo;
import com.mayisoftware.mayioa.business.plan.api.service.IPlanFlowService;
import com.mayisoftware.mayioa.business.plan.impl.dao.PlanFlowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计划流程服务实现
 */
@Service
public class PlanFlowServiceImpl implements IPlanFlowService {

    @Autowired
    private PlanFlowMapper planFlowMapper;

    @Override
    public List<PlanFlowInfo> queryRecordList(PlanFlowInfo record) {
        return planFlowMapper.selectRecordList(record);
    }

    @Override
    public List<PlanFlowInfo> queryRecordListById(String recordId) {
        return planFlowMapper.selectRecordListById(recordId);
    }

    @Override
    public List<PlanFlowInfo> queryRecordListSucc() {
        return  planFlowMapper.selectRecordListSucc();
    }


    @Override
    public int addFlowRecord(PlanFlowInfo record) {
        return planFlowMapper.insertFlowRecord(record);
    }
}
